home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_068 / mg1b / sys / amiga / makefile.lattice < prev    next >
Makefile  |  1992-05-06  |  7KB  |  238 lines

  1. #
  2. # Makefile for Amiga MicroGNUmacs, using Lattice 3.10, PD make and CC.
  3. #
  4. #    This Makefile should be executed in the main Emacs directory.
  5. #
  6. # Conditional compilation possibilities:
  7. #
  8. #    V11        -- must be defined for the editor to either run on
  9. #               or compile on a version 1.1 amigados system
  10. #
  11. #    STARTUP        -- if defined, code for using a startup file
  12. #               is included.  This is handy for folks who
  13. #               won't be able to hack the editor to their
  14. #               taste.
  15. #
  16. #    MENU        -- if defined, Intuition menu selection is
  17. #               enabled.  This uses a good bit of space,
  18. #               both on disk and in memory.  If you #define
  19. #               this, the XOBJ macro must contain $(MENUOBJ).
  20. #
  21. #    BROWSER        -- BROWSER uses the Amiga menu to
  22. #               present a MENU of files. Selecting a directory
  23. #               entry (ends with a /) makes the contents if that
  24. #               directory the next menu (deleting any menus that
  25. #               used to follow it); selecting a plain file does a
  26. #               "find-file" on that file name. Really has to be
  27. #               seen to be understood. XOBJ must contain
  28. #               $(MENUOBJ) for this to work.
  29. #
  30. #    MOUSE        -- if defined, the Amiga mouse is active.
  31. #               If you #define this, XOBJ must contain $(MOUSEOBJ)
  32. #
  33. #    XKEYS        -- if defined, the editor understands the Amiga
  34. #               function keys.
  35. #
  36. #    BACKUP        -- Allow for the creation of backup files. If this
  37. #               option is defined, the function make-backup-files
  38. #               sets a flag that causes save-buffers (C-x C-s)
  39. #               to rename the original file to file~ before
  40. #               writing the file.  Nice if the space is available.
  41. #               By default, backup files are not made.  Calling
  42. #               make-backup-files with no argument enables this
  43. #               feature; calling it with an argument disables it.
  44. #    DO_METAKEY    -- if defined, characters with high bit set (i.e.
  45. #               most ALT-ed characters in the usa0 keymap)
  46. #               are translated into internal META keys
  47. #
  48. #    CHANGE_COLOR    -- if defined, adds commands to manipulate
  49. #               the rendition of the mode line and the
  50. #               foreground and background color of the
  51. #               text window and mode line.  The names match
  52. #               the regular expression
  53. #               set-{text,mode}-{foreground,background}
  54. #
  55. #    MODE_RENDITION    -- the these values indicate the way to render
  56. #    TEXT_RENDITION       characters in the text area and mode line.
  57. #               TEXT_RENDITION is mainly there for completeness.
  58. #               Possible values are:
  59. #                0 -- plain text
  60. #                1 -- boldface
  61. #                3 -- italic
  62. #                4 -- underscore
  63. #                7 -- reverse-video (default if not defined)
  64. #
  65. #    TEXT_FG        -- specifies which system color (0-7) to use
  66. #    TEXT_BG           when drawing the text and mode line.  If they
  67. #    MODE_FG           aren't between 0 and 7, or if a combination
  68. #    MODE_BG           comes out badly, it's *YOUR* fault.  If
  69. #               CHANGE_COLOR is defined, you get to change these
  70. #               values on the fly.  Naturally, making both
  71. #               FG and BG the same results in an unusable display...
  72. #
  73. #    TOGGLE_ZOOMS    -- the function toggle-menu-hack switches between
  74. #               a bordered, sizeable window and a borderless
  75. #               window.  By default, the borderless window
  76. #               retains the size of the sizeable window.
  77. #               If TOGGLE_ZOOMS is #defined, however, the
  78. #               borderless window always takes up the whole
  79. #               screen.
  80. #
  81. #
  82. #    CFLAGS        -- Is set up assuming you've got Mike Meyer's
  83. #               hacked up version of the Fish cc that understands
  84. #               -Acd to mean "small code, small data". You can get
  85. #               a copy from him as mwm@berkeley.edu. If you change
  86. #               this makefile to use lc1 & lc2, please forward it
  87. #               back to him for inclusion in the next release.
  88. ############################################################################
  89. CC =        cc
  90. #DEBUGFLAG =    -g
  91. TTYDIR =    tty/amiga
  92. SYSDIR =    sys/amiga
  93. MENUOBJ =    ttymenu.o menustack.o
  94. MOUSEOBJ =    ttymouse.o
  95.  
  96. INCS = def.h $(TTYDIR)/ttydef.h $(SYSDIR)/sysdef.h
  97.  
  98. # The whole enchilada (~60K with Manx small model)
  99. #PREFS = -DSTARTUP -DBROWSER -DMENU -DMOUSE -DCHANGE_COLOR -DXKEYS -DDO_METAKEY -DBACKUP
  100. #XOBJ  = $(MENUOBJ) $(MOUSEOBJ)
  101.  
  102. # Burrito style, with just the Browser...
  103. #PREFS = -DSTARTUP  -DBROWSER -DMOUSE -DCHANGE_COLOR -DXKEYS -DDO_METAKEY -DBACKUP
  104. #XOBJ  = ,$(MOUSEOBJ),$(MENUOBJ)
  105.  
  106. # Burrito style, with just the menu...
  107. #PREFS = -DSTARTUP  -DMENU -DMOUSE -DCHANGE_COLOR -DXKEYS -DDO_METAKEY -DBACKUP
  108. #XOBJ  = $(MOUSEOBJ) $(MENUOBJ)
  109.  
  110. #Mike's favorite version
  111. PREFS = -DMOUSE -DBROWSER -DMODE_RENDITION=0 -DMODE_FG=2 -DTOGGLE_ZOOMS -DDO_METAKEY -DGOSREC -DMEYN
  112. XOBJ = $(MOUSEOBJ) $(MENUOBJ)
  113.  
  114. # Absolutely bare-bones editor (~49K with Manx small model)
  115. #PREFS = -DDO_METAKEY
  116. #XOBJ  =
  117.  
  118. CFLAGS =    -O -I$(TTYDIR) -I$(SYSDIR) $(DEBUGFLAG) $(PREFS) -Acd
  119.  
  120. EXEFILE =    mg
  121. COM1    = basic.o buffer.o cinfo.o display.o echo.o extend.o file.o kbd.o
  122. COM2    = line.o main.o match.o random.o region.o search.o symbol.o version.o
  123. COM3    = window.o paragraph.o prefix.o word.o
  124. TTYOBJ    = console.o tty.o ttyio.o ttykbd.o
  125. SYSOBJ    = fileio.o sleep.o spawn.o
  126. OBJ    = comlib1.o comlib2.o comlib3.o ttylib.o syslib.o $(XOBJ)
  127.  
  128. $(EXEFILE) :    $(OBJ)
  129.         blink lib:c.o $(OBJ) TO $(EXEFILE) LIB lib:lc.lib lib:amiga.lib SMALLCODE SMALLDATA NODEBUG
  130.  
  131. comlib1.o :    $(COM1)
  132.         join $(COM1) as comlib1.o
  133.  
  134. comlib2.o :    $(COM2)
  135.         join $(COM2) as comlib2.o
  136.  
  137. comlib3.o :    $(COM3)
  138.         join $(COM3) as comlib3.o
  139.  
  140. ttylib.o :    $(TTYOBJ)
  141.         join $(TTYOBJ) as ttylib.o
  142.  
  143. syslib.o :    $(SYSOBJ)
  144.         join $(SYSOBJ) as syslib.o
  145.  
  146. basic.o :    basic.c $(INCS)
  147.         $(CC) -c $(CFLAGS) basic.c
  148.  
  149. buffer.o :    buffer.c $(INCS)
  150.         $(CC) -c $(CFLAGS) buffer.c
  151.  
  152. cinfo.o :    cinfo.c $(INCS)
  153.         $(CC) -c $(CFLAGS) cinfo.c
  154.  
  155. display.o :    display.c $(INCS)
  156.         $(CC) -c $(CFLAGS) display.c
  157.  
  158. echo.o :    echo.c $(INCS)
  159.         $(CC) -c $(CFLAGS) echo.c
  160.  
  161. extend.o :    extend.c $(INCS)
  162.         $(CC) -c $(CFLAGS) extend.c
  163.  
  164. file.o :    file.c $(INCS)
  165.         $(CC) -c $(CFLAGS) file.c
  166.  
  167. kbd.o :        kbd.c $(INCS)
  168.         $(CC) -c $(CFLAGS) kbd.c
  169.  
  170. line.o :    line.c $(INCS)
  171.         $(CC) -c -g $(CFLAGS) line.c
  172.  
  173. match.o :    match.c $(INCS)
  174.         $(CC) -c $(CFLAGS) match.c
  175.  
  176. prefix.o :    prefix.c $(INCS)
  177.         $(CC) -c $(CFLAGS) prefix.c
  178.  
  179. paragraph.o :    paragraph.c $(INCS)
  180.         $(CC) -c $(CFLAGS) paragraph.c
  181.  
  182. main.o :    main.c $(INCS)
  183.         $(CC) -c $(CFLAGS) main.c
  184.  
  185. random.o :    random.c $(INCS)
  186.         $(CC) -c $(CFLAGS) random.c
  187.  
  188. region.o :    region.c $(INCS)
  189.         $(CC) -c $(CFLAGS) region.c
  190.  
  191. search.o :    search.c $(INCS)
  192.         $(CC) -c $(CFLAGS) search.c
  193.  
  194. symbol.o :    symbol.c $(INCS)
  195.         $(CC) -c $(CFLAGS) symbol.c
  196.  
  197. version.o :    version.c $(INCS)
  198.         $(CC) -c $(CFLAGS) version.c
  199.  
  200. window.o :    window.c $(INCS)
  201.         $(CC) -c $(CFLAGS) window.c
  202.  
  203. word.o :    word.c $(INCS)
  204.         $(CC) -c $(CFLAGS) word.c
  205.  
  206. console.o :    $(TTYDIR)/console.c $(INCS)
  207.         $(CC) -c $(CFLAGS) $(TTYDIR)/console.c
  208.  
  209. menustack.o :    $(TTYDIR)/menustack.c $(INCS)
  210.         $(CC) -c $(CFLAGS) $(TTYDIR)/menustack.c
  211.  
  212. tty.o :        $(TTYDIR)/tty.c $(INCS)
  213.         $(CC) -c $(CFLAGS) $(TTYDIR)/tty.c
  214.  
  215. ttyio.o :    $(TTYDIR)/ttyio.c $(INCS)
  216.         $(CC) -c $(CFLAGS) $(TTYDIR)/ttyio.c
  217.  
  218. ttykbd.o :    $(TTYDIR)/ttykbd.c $(INCS)
  219.         $(CC) -c $(CFLAGS) $(TTYDIR)/ttykbd.c
  220.  
  221.  
  222. ttymouse.o :    $(TTYDIR)/ttymouse.c $(INCS)
  223.         $(CC) -c $(CFLAGS) $(TTYDIR)/ttymouse.c
  224.  
  225. ttymenu.o :    $(TTYDIR)/ttymenu.c $(INCS)
  226.         $(CC) -c $(CFLAGS) $(TTYDIR)/ttymenu.c
  227. abort.o :    $(SYSDIR)/abort.c $(INCS)
  228.         $(CC) -c $(CFLAGS) $(SYSDIR)/abort.c
  229.  
  230. fileio.o :    $(SYSDIR)/fileio.c $(INCS)
  231.         $(CC) -c $(CFLAGS) $(SYSDIR)/fileio.c
  232.  
  233. sleep.o :    $(SYSDIR)/sleep.c $(INCS)
  234.         $(CC) -c $(CFLAGS) $(SYSDIR)/sleep.c
  235.  
  236. spawn.o :    $(SYSDIR)/spawn.c $(INCS)
  237.         $(CC) -c $(CFLAGS) $(SYSDIR)/spawn.c
  238.